package com.bos.service;

import com.bos.data.model.ProjectItemHistoryModel;
import com.bos.data.model.ProjectItemModel;
import com.bos.data.model.ProjectPropertyHistoryModel;
import com.bos.data.model.ProjectPropertyModel;

import java.util.List;

public interface Project_itemSerice {
    //1.要插入字段名称到project_property中
    public int insertProperty(ProjectPropertyModel pro);

    //2.将字段描述插入到project_item中
    void insertItem(List<ProjectItemModel> item);

    //3.根据要插入字段的名称查询出project_property中的值
    public ProjectPropertyModel findPropertyByProp(String prop);

    List<ProjectItemModel> findByProid(int proId);

    List<ProjectItemModel> findAll();

    //更新project_item表
    void updProItem(int id, String value);

    //添加project_item表数据
    void addProItem(ProjectItemModel projectItemModel);

    //根据proitid删除
    int delByProitid(int proitid);

    //添加到project_item_history表
    void addProItemHistory(ProjectItemHistoryModel historyItem);

    //添加到project_property_history表中
    int addProProHistory(ProjectPropertyHistoryModel model);

    //将字段描述插入到project_item_history中
    void insertItemHistory(List<ProjectItemHistoryModel> item);

    //根据项目id查询历史的其他字段数据
    List<ProjectItemHistoryModel> findByPid(int pid);

    //根据proitid删除历史表数据
    int delHistoryByProitid(int proitid);

    //更新project_item_history表
    void updProItemHistory(int id, String value);
}
